<!--#include("_header.html")-->
<!--@if($mid=="request")-->
<!--// 문의게시판 글 등록시 -->
<form action="./" method="post" onsubmit="jQuery(this).find('input').each(function(){if(this.title==this.value)this.value='';});
if($('#sms_notice:checked').length){$('#editor_1').val($('#editor_1').val()+'\nSMS알림:{$logged_info->cellphone[0]}-{$logged_info->cellphone[1]}-{$logged_info->cellphone[2]}');}
return procFilter(this, window.insert)" id="fo_write" class="boardWrite" name="fo_write">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
<input type="hidden" name="document_srl" value="{$document_srl}" />
	<table width="100%" cellpadding="0" cellspacing="0" style="border-top:1px solid #ddd;border-bottom:1px solid #ddd;" class="boardRequest">
		<tr>
			<td width="80" style="padding:10px;background:#fafafa;border-right:1px solid #ddd;border-bottom:1px solid #ddd;">회원정보</td>
			<td style="border-bottom:1px solid #ddd;">
				<table width="100%" style="margin:10px;" cellspacing="15">
					<tr>
						<td width="80">아이디</td><td>{$logged_info->user_id}</td>
					</tr>
					<tr>
						<td>이메일</td><td>{$logged_info->email_address}<br><span style="color:#aaa">답변 받으실 이메일주소를 꼭 기재해 주셔야합니다.</span></td>
					</tr>
					<tr>
						<td>답변알림요청</td><td><input type="checkbox" id="sms_notice"> SMS 알림 요청 문의<span style="color:#aaa"> | SMS 알림 및 고객응대 외의용도로는 사용되지 않습니다.</span><br><input type="text" size="3" value="{$logged_info->cellphone[0]}" readonly="readonly">-<input type="text" size="3" value="{$logged_info->cellphone[1]}" readonly="readonly">-<input type="text" size="3" value="{$logged_info->cellphone[2]}" readonly="readonly"></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr><td style="padding:10px;background:#fafafa;border-right:1px solid #ddd;">문의내용</td>
		<td style="padding:10px;">
			<table width="100%" style="margin:10px;" cellspacing="15">
				<tr>
					<td width="80">제목</td>
					<td><input type="text" name="title" id="postTitle" class="inputText" style="width:99%" value="{$lang->title}" title="{$lang->title}" onfocus="if(this.value==this.title) this.value='';" />
					</td>
				</tr>
				<tr>
					<td>내용</td><td><div style="border:1px solid #ddd;">{$oDocument->getEditor()}</div>
</td>
				</tr>
			</table>

				
	    <!--@if(count($extra_keys))-->
	    <table border="1" cellspacing="0" summary="Extra Form" class="extraVarsList">
		<caption><em>*</em> : {$lang->is_required}</caption>
	    <!--@foreach($extra_keys as $key => $val)-->
	    <tr>
	        <th scope="row">{$val->name} <!--@if($val->is_required=='Y')--><em>*</em><!--@end--></th>
	        <td>{$val->getFormHTML()}</td>
	    </tr>
	    <!--@endforeach-->
	    </table>
	    <!--@endif-->
	
	    	
		<div class="editorOption">		
	        <!--@if($grant->manager)-->
	        {@ $_color = array('555555','222288','226622','2266EE','8866CC','88AA66','EE2222','EE6622','EEAA22','EEEE22') }
	        <select name="title_color" id="title_color" <!--@if($oDocument->get('title_color'))-->style="color:#{$oDocument->get('title_color')};"<!--@end--> onchange="this.style.color=this.options[this.selectedIndex].style.color;">
	                <option value="" style="color:#CCCCCC;">{$lang->title_color}</option>
	                <!--@foreach($_color as $_col)-->
	                <option value="{$_col}" style="color:#{$_col}" <!--@if($oDocument->get('title_color')==$_col)-->selected="selected"<!--@end-->>{$lang->title_color}</option>
	                <!--@endforeach-->
	            </select>
	            <input type="checkbox" name="title_bold" id="title_bold" value="Y" <!--@if($oDocument->get('title_bold')=='Y')-->checked="checked"<!--@end--> />
	            <label for="title_bold">{$lang->title_bold}</label>
	            <input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" />
	            <label for="is_notice">{$lang->notice}</label>
	            <input type="checkbox" name="lock_comment" value="Y" <!--@if($oDocument->isLocked())-->checked="checked"<!--@end--> id="lock_comment" />
	            <label for="lock_comment">{$lang->lock_comment}</label>
	        <!--@end-->
	    </div>
	    </td></tr>
    </table>

	<div class="boardNavigation">
		<button type="submit" style="border:0; background:white; margin:0px; padding:0px;" ><img src="images/btSubmit.png" width="80" height="34"></button>
		<button type="reset" style="border:0; background:white;margin:0px; padding:0px;" ><img src="images/btCancel.png" width="80" height="34"></button>
	</div>

    </form>
    
    
<!--@else-->
<form action="./" method="post" onsubmit="jQuery(this).find('input').each(function(){if(this.title==this.value)this.value='';});return procFilter(this, window.insert)" id="fo_write" class="boardWrite">
<input type="hidden" name="mid" value="{$mid}" />
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
<input type="hidden" name="document_srl" value="{$document_srl}" />

	<div class="boardWriteHeader">
	
		<!--@if($module_info->use_category=="Y")-->
		<select name="category_srl" class="category">
			<option value="">{$lang->category}</option>
			<!--@foreach($category_list as $val)-->
			<option <!--@if(!$val->grant)-->disabled="disabled"<!--@endif--> value="{$val->category_srl}" <!--@if($val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl'))-->selected="selected"<!--@endif-->>
				{str_repeat("&nbsp;&nbsp;",$val->depth)} {$val->title} ({$val->document_count})
			</option>
			<!--@endforeach-->
		</select>
		<!--@endif-->
		
		<!--@if($oDocument->getTitleText())-->
		<input type="text" name="title" id="postTitle" class="inputText" value="{htmlspecialchars($oDocument->getTitleText())}" />
		<!--@else-->
		<input type="text" name="title" id="postTitle" class="inputText" value="{$lang->title}" title="{$lang->title}" onfocus="if(this.value==this.title) this.value='';" />
		<!--@end-->
	
        <!--@if($is_logged)-->
        <span class="buttonOfficial"><button type="button" onclick="doDocumentLoad(this); return false;">{$lang->cmd_load}</button></span>
        <!--@end-->
		
	</div>

    <!--@if(count($extra_keys))-->
    <table border="1" cellspacing="0" summary="Extra Form" class="extraVarsList">
	<caption><em>*</em> : {$lang->is_required}</caption>
    <!--@foreach($extra_keys as $key => $val)-->
    <tr>
        <th scope="row">{$val->name} <!--@if($val->is_required=='Y')--><em>*</em><!--@end--></th>
        <td>{$val->getFormHTML()}</td>
    </tr>
    <!--@endforeach-->
    </table>
    <!--@endif-->

    <div class="editor">{$oDocument->getEditor()}</div>

    <div class="tag">
        <input type="text" name="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="inputText" title="Tag" />
		<p>{$lang->about_tag}</p>
    </div>

	<div class="editorOption">
		<!--@if(!$is_logged)-->
		   <input type="text" name="nick_name" class="inputText userName" value="{$lang->writer}" title="{$lang->writer}" onfocus="if(this.value==this.title)this.value='';return false;" />
		   <input type="password" name="password" class="inputText userPw" value="{$lang->password}" title="{$lang->password}"  onfocus="if(this.value==this.title)this.value='';return false;" />
		   <input type="text" name="email_address" class="inputText emailAddress" value="{$lang->email_address}" title="{$lang->email_address}"  onfocus="if(this.value==this.title)this.value='';return false;" />
		   <input type="text" name="homepage" class="inputText homePage" value="{$lang->homepage}" title="{$lang->homepage}"  onfocus="if(this.value==this.title)this.value='';return false;" />
		<!--@end-->
		
        <!--@if($grant->manager)-->
        {@ $_color = array('555555','222288','226622','2266EE','8866CC','88AA66','EE2222','EE6622','EEAA22','EEEE22') }
        <select name="title_color" id="title_color" <!--@if($oDocument->get('title_color'))-->style="color:#{$oDocument->get('title_color')};"<!--@end--> onchange="this.style.color=this.options[this.selectedIndex].style.color;">
                <option value="" style="color:#CCCCCC;">{$lang->title_color}</option>
                <!--@foreach($_color as $_col)-->
                <option value="{$_col}" style="color:#{$_col}" <!--@if($oDocument->get('title_color')==$_col)-->selected="selected"<!--@end-->>{$lang->title_color}</option>
                <!--@endforeach-->
            </select>
            <input type="checkbox" name="title_bold" id="title_bold" value="Y" <!--@if($oDocument->get('title_bold')=='Y')-->checked="checked"<!--@end--> />
            <label for="title_bold">{$lang->title_bold}</label>
            <input type="checkbox" name="is_notice" value="Y" <!--@if($oDocument->isNotice())-->checked="checked"<!--@end--> id="is_notice" />
            <label for="is_notice">{$lang->notice}</label>
            <input type="checkbox" name="lock_comment" value="Y" <!--@if($oDocument->isLocked())-->checked="checked"<!--@end--> id="lock_comment" />
            <label for="lock_comment">{$lang->lock_comment}</label>
        <!--@endif-->
        <!--@if($module_info->secret=="Y")-->
            <input type="checkbox" name="is_secret" value="Y" <!--@if($oDocument->isSecret())-->checked="checked"<!--@end--> id="is_secret" />
            <label for="is_secret">{$lang->secret}</label>
        <!--@end-->
            <input type="checkbox" name="allow_comment" value="Y" <!--@if($oDocument->allowComment())-->checked="checked"<!--@end--> id="allow_comment" />
            <label for="allow_comment">{$lang->allow_comment}</label>
            <input type="checkbox" name="allow_trackback" value="Y" <!--@if($oDocument->allowTrackback())-->checked="checked"<!--@end--> id="allow_trackback" />
            <label for="allow_trackback">{$lang->allow_trackback}</label>
        <!--@if($is_logged)-->
            <input type="checkbox" name="notify_message" value="Y" <!--@if($oDocument->useNotify())-->checked="checked"<!--@end--> id="notify_message" />
            <label for="notify_message">{$lang->notify}</label>
        <!--@end-->
    </div>

	<div class="boardNavigation">
		<span class="buttonOfficial"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
		<span class="buttonOfficial"><button type="button" onclick="doDocumentSave(this);">{$lang->cmd_temp_save}</button></span>
		<span class="buttonOfficial"><button type="button" onclick="doDocumentLoad(this);">{$lang->cmd_load}</button></span>
	</div>

    </form>
<!--@endif-->
<!--#include("_footer.html")-->
